home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / imainarg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.8 KB  |  48 lines

  1. /* Copyright (C) 1996, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: imainarg.h,v 1.2 2000/09/19 19:00:44 lpd Exp $ */
  20. /* argv/argc interface to imainarg.c */
  21.  
  22. #ifndef imainarg_INCLUDED
  23. #  define imainarg_INCLUDED
  24.  
  25. /* Define an opaque type for an interpreter instance.  See imain.h. */
  26. #ifndef gs_main_instance_DEFINED
  27. #  define gs_main_instance_DEFINED
  28. typedef struct gs_main_instance_s gs_main_instance;
  29. #endif
  30.  
  31. /*
  32.  * As a shortcut for very high-level clients, we define a single call
  33.  * that does the equivalent of command line invocation, passing argc
  34.  * and argv.  This call includes calling init0 through init2.
  35.  * argv should really be const char *[], but ANSI C requires writable
  36.  * strings (which, however, it forbids the callee to modify!).
  37.  */
  38. int gs_main_init_with_args(P3(gs_main_instance * minst, int argc,
  39.                   char *argv[]));
  40.  
  41. /*
  42.  * Run the 'start' procedure (after processing the command line).
  43.  * Note that in case of error, this procedure exits rather than returning.
  44.  */
  45. void gs_main_run_start(P1(gs_main_instance * minst));
  46.  
  47. #endif /* imainarg_INCLUDED */
  48.